package com.tucue.bean;

import java.util.List;

/**
 * Created by tutu on 15/1/22.
 * 此类封装返回给app端的数据和状态信息
 */
public class ResponseBean<T>  {
    private String success="true";
    private String resulttype ="message";
    private String result="";
    private List<T> data=null;

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public String getResulttype() {
        return resulttype;
    }

    public void setResulttype(String resulttype) {
        this.resulttype = resulttype;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public ResponseBean()
    {
    }

    public ResponseBean(String success,String resulttype,String result,List<T> data)
    {
        this.setSuccess(success);
        this.setResult(resulttype);
        this.setResult(result);
        this.setData(data);
    }
}
